#include <iostream>

using namespace std;

class A
{
public:
    A(){
        cout<<"A()"<<this<<endl;
    }
    ~A()
    {
        cout<<"~A()"<<this<<endl;
    }
    A(const A &another)
    {
        cout<<"A(const A&)"<<this<<"->"<<&another<<endl;
    }
    void dis()
    {
        cout<<"xxxx0000000000000000000000000"<<endl;
    }

};

A getObjectA()
{
    return A();
}

// void fun(const A &a)
void fun(A &a)
{

}


int main()
{
    // A a = getObjectA();
    // fun(A());

    double d = 3.14;
    // const float & rd = d;
    float &&rd = d;//rd是临时变量
    cout<<"d = "<<d<<endl;
    cout<<"rd = "<<rd<<endl;
    d= 4.14;
    cout<<"d = "<<d<<endl;
    cout<<"rd = "<<rd<<endl;

    return 0;
}
